﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MolyMart
{
    public static class Utils
    {
        public static long GetUnixTimeStamp()
        {
           long epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000)/10000000;
           return epoch;
        }

        public static MessageItem Log(string owner, string message)
        {
            return new MessageItem()
            {
                Time = DateTime.Now.ToString(CultureInfo.CurrentCulture),
                Owner = owner,
                Message = message
            };
        }
    }
}
